package com.xyoto.community.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.xyoto.community.po.UserPO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Author: 廖振辉
 * Date: 2021/11/25
 * Description: 用户广场-全部用户列表Vo
 */
@Data
@ApiModel("用户广场-全部用户列表Vo")
public class TotalUserVO {

    @ApiModelProperty("用户信息")
    @JsonProperty("user")
    private UserPO userPO;

    @ApiModelProperty("用户顺位排名")
    private Integer rank;

    public TotalUserVO() {
        // 默认第9999位
        this.rank = 9999;
    }

    public TotalUserVO(UserPO userPO, Integer rank) {
        this.userPO = userPO;
        this.rank = rank;
    }
}
